package books.to.africa

class DonorRegister extends User{
//	String userName
	String email
//	String password
//	String passwordAgain
	Date dateCreated = new Date()
	DonationList dl

	
	static hasMany = [ books:Book ]
	
    static constraints = {
//		userName(blank: false, size: 2..20, unique: true)
		email(blank: false, email: true, unique: true)
//		password(blank: false, size: 6..8, validator: {password, register -> return password != register.userName})
//		passwordAgain(blank: false, validator: {passwordAgain, register -> return passwordAgain == register.password})
		dl(nullable: true)

    }
}
